import { request } from "@/utils/request.js"

export function apiGetLearn() {
	return request({
		url: "/app/course/",
		method: "GET",
	})
}

export function apiGetClassify() {
	return request({
		url: "/app/classify/",
		method: "GET",
	})
}

export function apiGetRandomImages() {
	return request({
		url: "/app/image/random",
		method: "GET"
	})
}

export function apiGetImageByClassify(label, queryParams) {
	return request({
		url: "/app/image/"+label,
		method: "GET",
		data: queryParams
	})
}

export function apiLogin(queryParams) {
	return request({
		url: "/app/user/login",
		method: "POST",
		data: queryParams
	})
}
